﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WillTheySplitTheCheck.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
            AutoGenerateColumns="False" DataKeyNames="storeid" 
            DataSourceID="EntityDataSource" Width="607px">
            <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:BoundField DataField="name" HeaderText="name" SortExpression="name" />
                <asp:BoundField DataField="address" HeaderText="address" 
                    SortExpression="address" />
                <asp:BoundField DataField="city" HeaderText="city" SortExpression="city" />
                <asp:BoundField DataField="state" HeaderText="state" SortExpression="state" />
                <asp:BoundField DataField="zip" HeaderText="zip" SortExpression="zip" />
                <asp:BoundField DataField="yayvotes" HeaderText="yayvotes" 
                    SortExpression="yayvotes" />
                <asp:BoundField DataField="nayvotes" HeaderText="nayvotes" 
                    SortExpression="nayvotes" />
            </Columns>
        </asp:GridView>
        <asp:EntityDataSource ID="EntityDataSource" runat="server" 
            ConnectionString="name=cwilli46Entities" 
            DefaultContainerName="cwilli46Entities" EnableFlattening="False" 
            EntitySetName="RESTAURANTS">
        </asp:EntityDataSource>
    
    </div>
    </form>
</body>
</html>
